/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import javax.faces.event.ActionEvent;
import java.io.Serializable;
/**
 *
 * @author Felipe Gutierrez
 */

public class ManagedBean2 implements Serializable  {

   private String draggableMessage = "TESTETESTE";
    private String modalMessage = "TSTETETETETET" ;
    // render flags for both dialogs
    private boolean draggableRendered = false;
    private boolean modalRendered = false;
    // if we should use the auto centre attribute on the draggable dialog
    private boolean autoCentre = false;

    public String getDraggableMessage() {
        return draggableMessage;
    }

    public void setDraggableMessage(String draggableMessage) {
        this.draggableMessage = draggableMessage;
    }

    public String getModalMessage() {
        return modalMessage;
    }

    public void setModalMessage(String modalMessage) {
        this.modalMessage = modalMessage;
    }

    public boolean isDraggableRendered() {
        return draggableRendered;
    }

    public void setDraggableRendered(boolean draggableRendered) {
        this.draggableRendered = draggableRendered;
    }

    public boolean getModalRendered() {
        return modalRendered;
    }

    public void setModalRendered(boolean modalRendered) {
        this.modalRendered = modalRendered;
    }

    public boolean getAutoCentre() {
        return autoCentre;
    }

    public void setAutoCentre(boolean autoCentre) {
        this.autoCentre = autoCentre;
    }

    public String getDetermineDraggableButtonText() {
        return "TESTE" + draggableRendered;
    }

    public String getDetermineModalButtonText() {
        return "TESTE"
                + modalRendered;
    }

    public void toggleDraggable(ActionEvent event) {
        draggableRendered = !draggableRendered;
    }

    public void toggleModal(ActionEvent event) {
        modalRendered = !modalRendered;
    }
}